<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/inc/taglibs.jsp"%>
<input type="hidden" value="${fileName }" name="fileName" id="fileName">
<div class="pageContent">
	<form method="post" action="${path }/admin/goodsEvaluate/fileReceive.html" enctype="multipart/form-data" class="pageForm required-validate" onsubmit="return iframeCallback(this);">
		<div class="pageFormContent" layoutH="56">
			<dl class="nowrap">
				<font color="red">操作流程：选择已编辑好的表格，点击上传，上传成功，直接点击导入即可</font>
			</dl>
			<dl class="nowrap">
				<dt>表格例子：</dt>
				<dd><a class="button" href="${path }/import/example.xls"><span>下载</span></a></dd>
			</dl>
			<dl class="nowrap">
				<dt>上传的文件：</dt>
				<dd>
					<input class="uploadify" id="file" name="file" type="file"/>
				</dd>
				<dd>
					<div class="buttonActive"><div class="buttonContent"><button type="submit">上传</button></div></div>
				</dd>
			</dl>
			
			<dl class="nowrap">
				<dt>评价时间范围:</dt>
				<table>
					<tr>
						<td>
							<input type="text" value="" id="eqStartDate" name="eqStartDate" class="date" dateFmt="yyyy-MM-dd" readonly="true" style="float:left;"/>
							<a class="inputDateButton" href="javascript:;" style="float:left;">选择</a>
						</td>
						<td>~</td>
						<td>
							<input type="text" value="" id="eqEndDate" name="eqEndDate" class="date" dateFmt="yyyy-MM-dd" readonly="true" style="float:left;"/>
							<a class="inputDateButton" href="javascript:;" style="float:left;">选择</a>
						</td>
						<td>&nbsp;&nbsp;&nbsp;<font color="red">默认时间为：2014-03-01~2014-08-22</font></td>
					</tr>
				</table>
			</dl>
			<dl class="nowrap">
				<dt>导入评价：</dt>
				<dd>
					<div class="buttonActive"><div class="buttonContent"><button type="button" onclick="importEvaluate();">导入</button></div></div>
				</dd>
			</dl>
		</div>
	</form>
	<form id="import" method="post" action="${path }/admin/goodsEvaluate/importEvaluate.html" enctype="multipart/form-data" class="pageForm required-validate" onsubmit="return iframeCallback(this);">
		<input type="hidden" id="startDate" name="startDate" value="" />
		<input type="hidden" id="endDate" name="endDate" value="" />
	</form>
</div>
<script type="text/javascript">
	function importEvaluate() {
		$("#startDate").val($("#eqStartDate").val());
		$("#endDate").val($("#eqEndDate").val());
		$("#import").submit();
	}
</script>

